<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:103:"/Users/zandianhui/Desktop/dataV/zxy/guanwang/addons/official/view/web/official_online_message/list.html";i:1636097310;s:98:"/Users/zandianhui/Desktop/dataV/zxy/guanwang/addons/official/view/web/official_common/pc/base.html";i:1636097310;s:98:"/Users/zandianhui/Desktop/dataV/zxy/guanwang/addons/official/view/web/official_common/pc/link.html";i:1636097310;s:97:"/Users/zandianhui/Desktop/dataV/zxy/guanwang/addons/official/view/web/official_common/pc/nav.html";i:1642515438;s:101:"/Users/zandianhui/Desktop/dataV/zxy/guanwang/addons/official/view/web/official_common/pc/captcha.html";i:1636097310;s:100:"/Users/zandianhui/Desktop/dataV/zxy/guanwang/addons/official/view/web/official_common/pc/footer.html";i:1636097310;}*/ ?>
<!DOCTYPE html>
<html lang="zxx">
<head>
    <title><?php echo $basic['title']; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="keywords" content="<?php echo $basic['keywords']; ?>">
    <meta name="description" content="<?php echo $basic['description']; ?>">
    <link href="/assets/addons/official/images/favicon.ico" type="image/x-icon" rel="icon">
<link href="/assets/addons/official/css/style.css" rel="stylesheet" type="text/css">
<link href="/assets/addons/official/css/animate.css" rel="stylesheet" type="text/css">
<link href="/assets/addons/official/css/page_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/assets/addons/official/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/assets/addons/official/js/common.js"></script>
<script type="text/javascript" src="/assets/addons/official/js/jquery.SuperSlide.js"></script>
<script type="text/javascript" src="/assets/addons/official/js/animate.js"></script>



    <!--css引入-->
    
<link href="/assets/addons/official/layui-v2.6.8/layui-v2.6.8/layui/css/layui.css" rel="stylesheet" type="text/css">

</head>
<body class="body_index">
<!--导航-->
<!--顶部 开始-->
<div id="top_main">
    <div id="top">
        <div id="top_1">
            <?php if($auth->isLogin()): ?>
                <span class="MemberName"><?php echo $user->username; ?></span>
                <a href="/index/user/logout" target="_self">[ <?php echo __l('index','Sign out'); ?> ]</a>
            <?php else: ?>
                <a href="/index/user/login" target="_self">[ <?php echo __l('index','Sign in'); ?> ]&nbsp;</a>
            <?php endif; ?>
        </div>
        <div id="top_2">
            <a href="<?php echo addon_url('official/web.official_home/set_language'); ?>?language=2&url=<?php echo base64_encode(request()->domain().request()->url()); ?>" target="_self">简体中文&nbsp;</a>
            <a href="<?php echo addon_url('official/web.official_home/set_language'); ?>?language=1&url=<?php echo base64_encode(request()->domain().request()->url()); ?>" target="_self">English</a>
        </div>
    </div>
</div>
<!--顶部 结束-->
<!--Logo 开始-->
<div id="logo_main">
    <div id="logo">
        <!--网站Logo 开始-->
        <div class="WebLogo">
            <a href="<?php echo addon_url('official/web.official_home/index'); ?>" target="_self">
                <img src="<?php echo __config('site_logo','value'); ?>" title="<?php echo __config('basic_title'); ?>" alt="<?php echo __config('basic_title'); ?>">
            </a>
        </div>
        <!--网站Logo 结束-->
        <!--导航 开始-->
        <div id="navigation">
            <ul class="navigationlist">
                <li>
                    <a href="<?php echo addon_url('official/web.official_home/index'); ?>" target="_self" <?php if(empty(input('param.pid'))): ?> class="current" <?php endif; ?>><?php echo __l('index','Website homepage'); ?></a>
                </li>
                <?php if(count($all_official_category)): foreach($all_official_category as $val): if($val['is_nav_show']): ?>
                            <li>
                                <a href="<?php echo get_cate_url($val); ?>" target="_self" <?php if((null !== input('param.pid')) && input('param.pid') == $val['id']): ?> class="current" <?php endif; ?> ><?php echo ze($val,'name'); ?></a>
                                <?php if(count($val['son'])): ?>
                                    <ul class="subnavigationlist">
                                        <?php foreach($val['son'] as $son): if($son['is_nav_show']): ?>
                                                <li>
                                                    <a href="<?php echo get_cate_url($son); ?>" target="_self"><?php echo ze($son,'name'); ?></a>
                                                </li>
                                            <?php endif; endforeach; ?>
                                    </ul>
                                <?php endif; ?>
                            </li>
                        <?php endif; endforeach; endif; ?>
            </ul>
        </div>
        <!--导航 结束-->
    </div>
</div>
<!--Logo 结束-->
<!--JS幻灯片 开始-->
<div id="banner_main">
    <!--幻灯片 开始-->
    <div id="banner">
        <ul class="bannerlist">
            <?php foreach($banners as $item): ?>
                <li style="background:#fff; ">
                    <a <?php if($item['url']): ?> href="<?php echo $item['url']; ?>" target="_blank" <?php else: ?> href="javascript:;" <?php endif; ?>>
                        <img src="<?php echo $item['image']; ?>" height="500px" width="100%">
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
    <div class="hd">
        <ul></ul>
    </div>
    <!--幻灯片 结束-->
</div>
<script>
    if ($(".bannerlist li").length > 0) {
        $('#banner_main').slide({
            titCell: '.hd ul',
            mainCell: '#banner ul',
            autoPlay: true,
            autoPage: true,
            delayTime: 500,
            effect: 'left'
        });
        $(window).resize(function () {
            CenterBanner();
        });
        $(document).ready(function (e) {
            CenterBanner();
        });
    } else {
        $("#banner_main").hide();
    }

    function CenterBanner() {
        var imgWidth = parseInt($(".bannerlist li img:first").width());
        if (imgWidth <= 0) return;
        var winWidth = parseInt($(window).width());
        var offset = parseInt((winWidth - imgWidth) / 2);
        $(".bannerlist li img").css("margin-left", offset + 'px');
    }
</script>
<!--JS幻灯片 结束-->

<!--主体-->

<!--主体内容 开始-->
<div class="article">
    <!--右侧区域 开始-->
    <div id="right">
        <div class="right_title">
            <h2>
                <img src="/assets/addons/official/images/titleleftbg.png" align="absmiddle"><?php echo ze($res,'name'); ?>
                <img src="/assets/addons/official/images/titlerightbg.png" align="absmiddle">
            </h2>
        </div>
        <div class="right_body">
            <table class="resume_table">
                <form enctype="multipart/form-data" class="layui-form" id="frmResume">
                    <?php echo token(); ?>
                    <tbody>
                    <tr class="layui-form-item">
                        <th>
                            <label class="layui-form-label"><?php echo __l('online_message','Title'); ?></label>
                        </th>
                        <td class="layui-input-block">
                            <input type="text" name="title" required  lay-verify="required" autocomplete="off" placeholder="<?php echo __l('online_message','Fill in'); ?><?php echo __l('online_message','Title'); ?>" class="layui-input">
                        </td>
                    </tr>
                    <tr class="layui-form-item">
                        <th>
                            <label class="layui-form-label"><?php echo __l('online_message','Name'); ?></label>
                        </th>
                        <td class="layui-input-block">
                            <input type="text" name="name" required  lay-verify="required" autocomplete="off" placeholder="<?php echo __l('online_message','Fill in'); ?><?php echo __l('online_message','Name'); ?>" class="layui-input">
                        </td>
                    </tr>
                    <tr class="layui-form-item">
                        <th>
                            <label class="layui-form-label"><?php echo __l('online_message','Phone'); ?></label>
                        </th>
                        <td class="layui-input-block">
                            <input type="text" name="phone" required  lay-verify="required" autocomplete="off" placeholder="<?php echo __l('online_message','Fill in'); ?><?php echo __l('online_message','Phone'); ?>" class="layui-input">
                        </td>
                    </tr>
                    <tr class="layui-form-item">
                        <th>
                            <label class="layui-form-label"><?php echo __l('online_message','Content'); ?></label>
                        </th>
                        <td class="layui-input-block">
                            <textarea placeholder="<?php echo __l('online_message','Fill in'); ?><?php echo __l('online_message','Content'); ?>" name="content" class="layui-textarea" required></textarea>
                        </td>
                    </tr>
                    <?php if($captchaType): ?>
                    <tr class="layui-form-item">
                        <th>
                            <label class="layui-form-label"><?php echo __l('index','Captcha'); ?></label>
                        </th>
                        <td class="layui-input-block">
                            <!--@formatter:off-->
<?php if("text" == 'email'): ?>
    <input type="text" name="captcha" class="form-control input-lg" data-rule="required;length(4);integer[+];remote(<?php echo url('api/validate/check_ems_correct'); ?>, event=register, email:#email)" />
    <span class="input-group-btn" style="padding:0;border:none;">
        <a href="javascript:;" class="btn btn-info btn-captcha btn-lg" data-url="<?php echo url('api/ems/send'); ?>" data-type="email" data-event="register">发送验证码</a>
    </span>
<?php elseif("text" == 'mobile'): ?>
    <input type="text" name="captcha" class="form-control input-lg" data-rule="required;length(4);integer[+];remote(<?php echo url('api/validate/check_sms_correct'); ?>, event=register, mobile:#mobile)" />
    <span class="input-group-btn" style="padding:0;border:none;">
        <a href="javascript:;" class="btn btn-info btn-captcha btn-lg" data-url="<?php echo url('api/sms/send'); ?>" data-type="mobile" data-event="register">发送验证码</a>
    </span>
<?php elseif("text" == 'wechat'): if(get_addon_info('wechat')): ?>
        <input type="text" name="captcha" class="form-control input-lg" data-rule="required;length(4);remote(<?php echo addon_url('wechat/captcha/check'); ?>, event=register)" />
        <span class="input-group-btn" style="padding:0;border:none;">
            <a href="javascript:;" class="btn btn-info btn-captcha btn-lg" data-url="<?php echo addon_url('wechat/captcha/send'); ?>" data-type="wechat" data-event="register">获取验证码</a>
        </span>
    <?php else: ?>
        请在后台插件管理中安装《微信管理插件》
    <?php endif; elseif("text" == 'text'): ?>
    <span class="input-group-btn" style="padding:0;border:none;">
        <input type="text" name="captcha" required autocomplete="off" placeholder="<?php echo __l('index','Input verification code'); ?>" data-rule="required;length(4)" class="layui-input captcha_input" style="width: 200px;float: left">
        <img src="<?php echo captcha_src(); ?>" width="100" height="40" onclick="this.src = '<?php echo captcha_src(); ?>?r=' + Math.random();" style="margin-left: 10px;margin-top: 5px"/>
    </span>
<?php endif; ?>
<!--@formatter:on-->
                        </td>
                    </tr>
                    <?php endif; ?>
                    <tr class="layui-form-item">
                        <td colspan="2" class="operation">
                            <button class="form_button btn in_post" stu="1" type="button" lay-filter="demo1"><?php echo __l('online_message','Submit a message'); ?></button>
                        </td>
                    </tr>
                    </tbody>
                </form>
            </table>
            <div class="page"></div>
        </div>
        <div class="right_bottom"></div>
    </div>
    <!--右侧区域 结束-->
    <div class="clear"></div>
</div>
<!--主体内容 结束-->

<style>
    .layui-textarea{
        margin-top: 5px !important;
    }
    .layui-input{
        margin-top: 5px !important;
    }
    .layui-form-label{
        text-align: left !important;
    }
</style>






<!--底部-->
<div id="bottom_main">
    <div id="bottom">
        <div id="bottom_1">
            <!-- 底部导航 开始-->
            <ul class="bottom_navigation">
                <?php if(count($all_official_category)): foreach($all_official_category as $val): if($val['is_flooter_nav_show']): ?>
                        <li>
                            <a href="<?php echo get_cate_url($val); ?>" target="_self"><?php echo ze($val,'name'); ?></a>
                            <ul class="subnavigationlist1">
                                <?php foreach($val['son'] as $son): if($son['is_flooter_nav_show']): ?>
                                        <li>
                                            <a href="<?php echo get_cate_url($son); ?>" target="_self"><?php echo ze($son,'name'); ?></a>
                                        </li>
                                    <?php endif; endforeach; ?>
                            </ul>
                        </li>
                        <?php endif; endforeach; endif; ?>
                <!-- 底部导航 结束-->
        </div>
        <div id="bottom_2">
            <div class="contact_wrap">
                <b class="ico5"><?php echo __config('site_relation'); ?>：</b><?php echo __config('site_relation','value'); ?>
                <br>
                <p><b class="ico2"><?php echo __config('site_mobile'); ?>：</b><?php echo __config('site_mobile','value'); ?> </p>
                <b class="ico3"><?php echo __config('site_email'); ?>：</b><?php echo __config('site_email','value'); ?>
                <br>
                <b class="ico4"><?php echo __config('site_address'); ?>：</b><?php echo __config('site_address','value'); ?>
                <br>
            </div>
            <div class="WeChat">
                <img src="<?php echo __config('site_qrcode','value'); ?>">
                <div class="bdsharebuttonbox">
                    <span class="LShare">微信扫描关注我们：</span>
<!--                    <a href="#" class="bds_more" data-cmd="more"></a>-->
<!--                    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>-->
<!--                    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>-->
<!--                    <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>-->
<!--                    <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>-->
                    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 底部版权 开始-->
<div id="copyright_main">
    <div id="copyright">
        <span class="TechnicalSupport"><?php echo __config('site_technical_support'); ?>：<a href="<?php echo __config('site_technical_support','value',1); ?>" target="_blank"><?php echo __config('site_technical_support','value'); ?></a></span>
        <span>
            <a href="<?php echo __config('site_copyright','value',1); ?>" target="_self"><?php echo __config('site_copyright','value'); ?></a>
            <p style="display: inline"> &nbsp;<?php echo __config('site_copyright'); ?>&nbsp;</p>
            <a href="<?php echo __config('site_beian','value',1); ?>"><?php echo __config('site_beian','value'); ?></a>&nbsp
        </span>
    </div>
</div>
<!--gotop start-->
<script type="text/javascript" src="/assets/addons/official/js/common_130434.js"></script>
<script>
    scrolltotop.controlattrs = {offsetx: 20, offsety: 150};
    scrolltotop.controlHTML = '<img src="/assets/addons/official/images/1.gif" />';
    scrolltotop.anchorkeyword = '#gotop';
    scrolltotop.title = '回顶部';
    scrolltotop.init();
</script>

<!--底部js-->

<script src="/assets/addons/official/layui-v2.6.8/layui-v2.6.8/layui/layui.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer;

        $('.in_post').click(function () {
            let that = this;
            let title = $("input[name='title']").val();
            let name = $("input[name='name']").val();
            let phone = $("input[name='phone']").val();
            let __token__ = $("input[name='__token__']").val();
            let content = $("textarea[name='content']").val();

            let captcha = $("input[name='captcha']").val();

            let stu = $('.in_post').attr('stu');
            if (stu != 1){
                layer.msg("<?php echo __l('index','Do not click again'); ?>");
            }


            if (!title){
                layer.msg("<?php echo __l('online_message','Title'); ?>"+"<?php echo __l('index','No_empty'); ?>");
                return false;
            }
            if (!name){
                layer.msg("<?php echo __l('online_message','Name'); ?>"+"<?php echo __l('index','No_empty'); ?>");
                return false;
            }
            if (!phone){
                layer.msg("<?php echo __l('online_message','Phone'); ?>"+"<?php echo __l('index','No_empty'); ?>");
                return false;
            }
            if (!content){
                layer.msg("<?php echo __l('online_message','Content'); ?>"+"<?php echo __l('index','No_empty'); ?>");
                return false;
            }

            if (!captcha){
                layer.msg("<?php echo __l('index','Captcha'); ?>"+"<?php echo __l('index','No_empty'); ?>");
                return false;
            }

            var data = {
                name:name,
                title:title,
                phone:phone,
                content:content,
                captcha:captcha,
                __token__:__token__
            };

            $('.in_post').attr('stu',2);


            axios.post('', data)
                .then(function (response) {
                    let data = response.data;
                    $('.in_post').attr('stu',1);
                    if(data.code){
                        //信息框-例1
                        layer.alert(data.msg, {icon: 6,title:"<?php echo __l('index','Successful tip'); ?>"});
                        $("input[name='name']").val('');
                        $("input[name='title']").val('');
                        $("input[name='phone']").val('');
                        $("textarea[name='content']").val('');
                        $("input[name='captcha']").val('');
                        return false;
                    }
                    //信息框-例1
                    layer.msg(data.msg, {icon: 5},function(){
                        axios.get("<?php echo addon_url('official/web.official_home/get_token'); ?>", data)
                            .then(function (response) {
                                let res = response.data;
                                if (res.code == 1){
                                    $("input[name='__token__']").val(res.data)
                                }
                            })
                    });
                })
                .catch(function (error) {
                    console.log(error);
                });
        })
    });
</script>

</body>
</html>